package com.bwie.bargain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * 
 * @author HouDing
 * @email 1398853436@qq.com
 * @date 2022-03-09 20:02:51
 */
@Data
@TableName("bargainbetween")
public class BargainbetweenEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 发起人id
	 */
	@TableId
	private Long userId;
	/**
	 * 发起时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
	private Date createTime;
	/**
	 * 规则(1 按刀数 2 按价格)
	 */
	private Integer surplus;
	/**
	 * 商品id
	 */
	private Long goodsId;
	/**
	 * 商品价格
	 */
	private Double goodsPrice;
	/**
	 * 底价
	 */
	private Double floorPrice;
	/**
	 * 砍价状态
	 */
	private Integer bargainStatus;
	/**
	 * 砍价活动编号
	 */
	private Long bargainId;
	/**
	 * 结束时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
	private Date endTime;

}
